// Programming_Scala/src/ch03/double-filtered-for-script.scala

val dogBreeds = List( "Doberman", "Yorkshire Terrier", "Dachshund", "Scottish Terrier", "Great Dane", "Portuguese Water Dog" )

for ( breed <- dogBreeds
  if breed.contains( "Terrier" );
  if !breed.contains( "Yorkshire" )
) println(breed)

